<?php

class Negara{

	var $db;

	public function __construct(){
		$this->db = new DBClass();
	}
	
	public function get_all_negara($start, $page){
		
		$query = "Select * from nationality Limit $start, $page";

		$rows = $this->db->getRows($query);

		return $rows;	

	}

	public function get_all_row(){
		$query = "Select count(*) as jml from nationality";

		$rows = $this->db->getRows($query);

		return $rows[0]['jml'];
	}


}